import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/admin/manage/list',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/admin/manage/add',
    method: 'post',
    data
  })
}

export function find(data) {
  return request({
    url: '/admin/manage/find',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/admin/manage/update',
    method: 'post',
    data
  })
}

export function publish(data) {
  return request({
    url: '/admin/manage/enable',
    method: 'post',
    data
  })
}

export function unPublish(data) {
  return request({
    url: '/admin/manage/un/publish',
    method: 'post',
    data
  })
}

export function resetPassword(data) {
  return request({
    url: '/admin/manage/reset/password',
    method: 'post',
    data
  })
}

